package cn.exrick.xboot.base.entity

import cn.exrick.xboot.core.base.XbootBaseEntity
import cn.exrick.xboot.core.base.XbootBaseEntityKt
import cn.exrick.xboot.core.common.utils.SnowFlakeUtil
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import io.swagger.annotations.ApiOperation
import org.hibernate.annotations.DynamicInsert
import org.hibernate.annotations.DynamicUpdate
import java.util.*
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table

/**
 * @author Fei
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "se_security_advisor_job_train")
@TableName("se_security_advisor_job_train")
@ApiModel(value = "安全顾问岗位培训上传")
data class SecurityAdvisorJobTrain(

        @ApiModelProperty("岗位id")
        var jobId: String? = null,

        @ApiModelProperty("企业id")
        var enterpriseId: String? = null,

        @ApiModelProperty("培训类型 1.岗前 2.岗后")
        var jobType: Int? = null,

        @ApiModelProperty("培训开始时间")
        var trainBeginTime: Date? = null,

        @ApiModelProperty("培训结束时间")
        var trainEndTime: Date? = null,

        @ApiModelProperty("培训轮播图")
        var trainPics: String? = null,

        @ApiModelProperty("培训标题")
        var trainTitle: String? = null

) : XbootBaseEntityKt() {

    @Id
    @TableId
    override var id: String = SnowFlakeUtil.nextId().toString()


    companion object {
        const val serialVersionUID = 1L
    }
}